//
//  ViewController.m
//  Chat
//
//  Created by mac on 16/7/6.
//  Copyright © 2016年 Earl. All rights reserved.
//

#import "ViewController.h"
#import "LoginViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
   
    
    [self performSelector:@selector(animation) withObject:nil afterDelay:1];
    
}

-(void)animation{
    LoginViewController *loginVC=[[LoginViewController alloc]init];
    UINavigationController *nav=[[UINavigationController alloc]initWithRootViewController:loginVC];
    WINDOW.rootViewController=nav;
    
    [UIView animateWithDuration:1 animations:^{
        [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:WINDOW cache:YES];
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
